﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using XXS.Common.BaseModel;

namespace KTD.Web.Models
{
    public  class SysVerifyCode : BaseModel
    {
        public string Mobile { get; set; }

        public GenerateVerifyCodeType GenerateVerifyCodeType { get; set; }

        public string VerifyCode { get; set; }

        public bool IsUsed { get; set; }

        public string SMSContent { get; set; }

        public DateTime ExpiredDateTime { get; set; }

        public int EffectiveMinite { get; set; }

        [Timestamp]
        public byte[] RowVersion { get; set; }
    }

    public enum GenerateVerifyCodeType
    {
        None,
        忘记密码 = 1,
        变更手机号 = 2,
        登录 = 3,
        注册 = 4
    }
}